package com.duan.common.controller;

import com.duan.common.annotations.ControllerLimitAnnotation;
import com.duan.common.beans.vo.ResponseVO;
import com.duan.common.utils.ResponseUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.atomic.AtomicInteger;

@RestController("/")
public class TestController {


    private AtomicInteger atomicInteger = new AtomicInteger();

    @ControllerLimitAnnotation
    @RequestMapping("/index")
    public ResponseVO<Object> index() {
//        System.out.println(">>>>>" + atomicInteger.addAndGet(1));
        return ResponseUtil.success();
    }




}
